package com.koo.modules.activiti.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.koo.common.base.entity.CommonEntity;
import com.koo.common.utils.excel.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;

/**
 * 请假对象 workflow_leave
 * @author charlin
 * @date 2020-10-28
 */
@Data
@ApiModel("请假对象")
@TableName("workflow_leave")
public class WorkflowLeave extends CommonEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键ID")
    private String leaveId;

    @Excel(name = "请假类型")
    @ApiModelProperty("请假类型")
    private Integer type;

    @Excel(name = "标题")
    @ApiModelProperty("标题")
    private String title;

    @Excel(name = "原因")
    @ApiModelProperty("原因")
    private String reason;

    @Excel(name = "附件")
    @ApiModelProperty("附件")
    private String attachmentLink;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("开始时间")
    private Date leaveStartTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("结束时间")
    private Date leaveEndTime;

    @ApiModelProperty("流程实例Id")
    private String instanceId;

    @ApiModelProperty("流程任务名称")
    private String taskName;


}
